package com.gaowl.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
* 1.整合 Mybatis-plus
*     导入相关maven依赖
*     修改配置
*        配置数据源：导入mysql驱动、在 application.yaml 文件中修改数据源信息
*        配置 Mybatis-plus：
*             使用MapperScan指定Mapper扫描路径
*
*
*
* */
@EnableFeignClients(basePackages = "com.gaowl.gulimall.product.feign")   // 启用远程调用功能
@EnableDiscoveryClient   // 启用服务注册与发现
@MapperScan("com.gaowl.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
